<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="pg" uri="http://jsptags.com/tags/navigation/pager"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #F8F9FA;
}
-->
</style>
<link href="<%=basePath %>admin/images/skin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=basePath %>fckeditor/fckeditor.js"></script>
<script type="text/javascript" src="<%=basePath %>js/calendar.js"></script>
<script type="text/javascript">
	window.onload = function()
	{
	var oFCKeditor = new FCKeditor( 'content' ) ;
	oFCKeditor.BasePath = "<%=basePath %>fckeditor/" ;
	oFCKeditor.ReplaceTextarea() ;
	}
</script>
<body>
 <%
     if(session.getAttribute("msg")!=null)
     {
       %>
        <script type="text/javascript">
         alert('<%=session.getAttribute("msg")%>');  
        </script>
       <%
       session.removeAttribute("msg");
     }
     %>
	<form method="POST" action="activity!updateActive.action">
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td width="17" height="29" valign="top"
					background="<%=basePath %>admin/images/mail_leftbg.gif">
					<img src="<%=basePath %>admin/images/left-top-right.gif" width="17" height="29" />
				</td>
				<td width="935" height="29" valign="top"
					background="<%=basePath %>admin/images/content-bg.gif">
					<table width="100%" height="31" border="0" cellpadding="0"
						cellspacing="0" class="left_topbg" id="table2">
						<tr>
							<td height="31">
								<div class="titlebt">
									活动信息修改
								</div>
							</td>
						</tr>
					</table>
				</td>
				<td width="16" valign="top"
					background="<%=basePath %>admin/images/mail_rightbg.gif">
					<img src="<%=basePath %>admin/images/nav-right-bg.gif" width="16" height="29" />
				</td>
			</tr>
			<tr>
				<td height="71" valign="middle"
					background="<%=basePath %>admin/images/mail_leftbg.gif">&nbsp;
					
				</td>
				<td valign="top" bgcolor="#F7F8F9">
					<table width="100%" height="138" border="0" cellpadding="0"
						cellspacing="0">
						
						<tr>
							<td valign="top">
								<table width="98%" border="0" align="center" cellpadding="0"
									cellspacing="0">
									<tr>
										<td class="left_txt">
											当前位置：活动信息修改										</td>
									</tr>
									<tr>
										<td height="20">
											<table width="100%" height="1" border="0" cellpadding="0"
												cellspacing="0" bgcolor="#CCCCCC">
												<tr>
													<td></td>
												</tr>
											</table>										</td>
									</tr>
									<tr>
										<td>
											<table width="100%" height="55" border="0" cellpadding="0"
												cellspacing="0">
												<tr>
													<td width="10%" height="55" valign="middle">
														<img src="<%=basePath %>admin/images/title.gif" width="54" height="55">													</td>
													<td width="90%" valign="top">
														<span class="left_txt2">在这里，您可以根据您的网站要求，修改设置网站的</span><span
															class="left_txt3">会员信息录入</span><span class="left_txt2">！</span>
														<br>
														<span class="left_txt2">包括</span><span class="left_txt3">网站名称，网址，网站备案号，联系方式，网站公告，关键词，风格</span><span
															class="left_txt2">等以及网站</span><span class="left_txt3">会员及等级积分设置</span><span
															class="left_txt2">。 </span>													</td>
												</tr>
											</table>										</td>
									</tr>
									<tr>
										<td>
											<table width="100%" height="31" border="0" cellpadding="0"
												cellspacing="0" class="nowtable">
												<tr>
													<td class="left_bt2">
														&nbsp;&nbsp;&nbsp;&nbsp;活动信息修改													</td>
												</tr>
											</table>										</td>
									</tr>
									<tr>
									  <td><table width="100%" border="0" cellspacing="0"
												cellpadding="0">
                                        <tr>
                                          <td width="5%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">活动信息标题： </td>
                                          <td width="1%" bgcolor="#f2f2f2">&nbsp;</td>
                                          <td width="30%" height="30" bgcolor="#f2f2f2">
                                              <input name="active.aid" type="hidden" id="aid" value="${active.aid }"/>
                                              <!-- active.mtype = 02代表 活动信息 -->
											  <input name="active.mtype" type="hidden" id="mtype" value="02"/>
											  <!-- active.mname = ‘活动信息’代表 总标题 -->
											  <input name="active.mname" type="hidden" id="mname" value="活动信息"/>	
                                              <input name="active.title" type="text" value="${ active.title }" id="title" size="30"/>
                                              <font size="4" color="red">*</font>&nbsp;<font size="2">活动信息的标题必填</font> </td>
                                        </tr>
                                        <tr>
                                          <td width="5%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">企业名称/实践单位： </td>
                                          <td width="1%" bgcolor="#f2f2f2">&nbsp;</td>
                                          <td width="30%" height="30" bgcolor="#f2f2f2" style="font-size: 12px;">
														<select name="active.bid">
														 <c:if test="${!empty buessiness}">
															<c:forEach items="${buessiness}" var="buessines">					
																<option value="${buessines.bid}">${buessines.allname }</option>
															</c:forEach>
											              </c:if>
														</select>&nbsp;&nbsp;&nbsp;&nbsp;<font color="red">【上次选择:${active.ballname }】</font>&nbsp;&nbsp;&nbsp;
													企业简称:	<input name="active.bnockname" type="text" value="${ active.bnockname}" id="title" size="15"/>
													【简称将在前台显示】
                                          </td>
                                        </tr>
                                        <tr>
                                          <td width="5%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">活动/集合时间说明： </td>
                                          <td width="1%" bgcolor="#f2f2f2">&nbsp;</td>
                                          <td width="30%" height="30" bgcolor="#f2f2f2"><input name="active.timetips" value="${ active.timetips }" type="text" id="timetips" size="30"/>
                                          </td>
                                        </tr>
                                        <tr>
                                          <td width="5%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">活动/集合地点说明： </td>
                                          <td width="1%" bgcolor="#f2f2f2">&nbsp;</td>
                                          <td width="30%" height="30" bgcolor="#f2f2f2"><input name="active.placetips" value="${ active.placetips }" type="text" id="placetips" size="30"/>
                                          </td>
                                        </tr>
                                        <tr>
                                          <td width="5%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">报名截止时间： </td>
                                          <td width="1%" bgcolor="#f2f2f2">&nbsp;</td>
                                          <td width="30%" height="30" bgcolor="#f2f2f2" style="font-size: 12px;">
                                          <input name="active.endtime" onfocus="setday(this)" type="text" value="${ active.endtime }" id="endtime" size="20"/>
                                               【点击输入框选择日期和时间】
                                          </td>
                                        </tr>
                                        <tr>
                                          <td width="5%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">活动类别： </td>
                                          <td width="1%" bgcolor="#f2f2f2">&nbsp;</td>
                                          <td width="30%" height="30" bgcolor="#f2f2f2" style="font-size: 12px;">
                                            <select name="active.ctype">
                                             <option value="01">交友聚会</option>
                                             <option value="02">拓展训练</option>
                                             <option value="03">卡拉OK比赛</option>
                                             <option value="04">户外郊游</option>
                                            </select>
                                            &nbsp;&nbsp;&nbsp;&nbsp;
                                                  <font color="red">【上次选择:${active.cname }】</font>
                                          </td>
                                        </tr>  
                                        <tr>
                                          <td width="5%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">是否公开： </td>
                                          <td width="1%" bgcolor="#f2f2f2">&nbsp;</td>
                                          <td width="30%" height="30" bgcolor="#f2f2f2">
                                          <c:choose>
										     <c:when test="${'是' eq active.remark2}">
										      <input type="radio" name="active.remark2" value="是" checked="checked"/><font size="2">公开</font>
											  <input type="radio" name="active.remark2" value="否" /><font size="2">不公开</font>	
										     </c:when>
										     <c:otherwise>
										      <input type="radio" name="active.remark2" value="是"/><font size="2">公开</font>
											  <input type="radio" name="active.remark2" value="否"  checked="checked"/><font size="2">不公开</font>	
										     </c:otherwise>
										  </c:choose>
                                          </td>
                                        </tr>
                                        <tr>
                                          <td width="5%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">报名电话： </td>
                                          <td width="1%" bgcolor="#f2f2f2">&nbsp;</td>
                                          <td width="30%" height="30" bgcolor="#f2f2f2"><input name="active.stips" value="${ active.stips }" type="text" id="stips" size="30"/>
                                          </td>
                                        </tr>      
                                        <tr>
                                          <td width="5%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">报名限制人数： </td>
                                          <td width="1%" bgcolor="#f2f2f2">&nbsp;</td>
                                          <td width="30%" height="30" bgcolor="#f2f2f2" style="font-size: 12px;">
                                            <input name="active.nowallnum" type="text" value="${ active.nowallnum }" id="title" size="10"/>
                                            &nbsp;&nbsp;&nbsp;&nbsp;
                                                   最终录用人数: 
                                            <input name="active.lastnum" type="text" value="${ active.lastnum }" id="title" size="10"/>
                                             &nbsp;&nbsp;【请填写相应的阿拉伯数字】
                                          </td>
                                        </tr>
                                         <tr>
                                          <td width="5%" height="30" align="right" bgcolor="#f2f2f2"
														class="left_txt2">活动详细信息： </td>
                                          <td width="1%" bgcolor="#f2f2f2">&nbsp;</td>
                                          <td width="30%" height="30" bgcolor="#f2f2f2">
                                           <textarea rows="30" cols="100" id="content" name="active.content">
                                            ${ active.content }
                                           </textarea>
                                          
                                          </td>
                                        </tr>
                                        <tr height="30">
                                          <td height="17" colspan="2" align="right"><input name="submit" type="submit" value="提交信息">                                          </td>
                                          <td height="17" colspan="1" align="center"><input name="reset" type="reset" value="信息重填">                                          </td>
                                        </tr>
                                      </table></td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
				<td background="<%=basePath %>admin/images/mail_rightbg.gif">&nbsp;
					
				</td>
			</tr>
			<tr>
				<td valign="middle" background="<%=basePath %>admin/images/mail_leftbg.gif">
					<img src="<%=basePath %>admin/images/buttom_left2.gif" width="17" height="17" />
				</td>
				<td height="17" valign="top"
					background="<%=basePath %>admin/images/buttom_bgs.gif">
					<img src="<%=basePath %>admin/images/buttom_bgs.gif" width="17" height="17" />
				</td>
				<td background="<%=basePath %>admin/images/mail_rightbg.gif">
					<img src="<%=basePath %>admin/images/buttom_right2.gif" width="16" height="17" />
				</td>
			</tr>
		</table>
	</form>
</body>
